home *** CD-ROM | disk | FTP | other *** search
- #!/bin/sh
- # $Id$
- #
- # Start and stop the SGI Freeware Apache httpd
- # See /usr/freeware/apache/etc for configuration, etc.
- #
-
- IS_ON=/etc/chkconfig
- httpd_dir=/usr/freeware/apache
- apachectl=$httpd_dir/sbin/apachectl
-
- if $IS_ON verbose ; then
- ECHO=echo
- else # For a quiet startup and shutdown
- ECHO=:
- fi
-
- case "$1" in
- 'start')
- if ${IS_ON} apache && test -x $apachectl; then
- echo "Starting SGI Freeware Apache httpd"
- $apachectl start
- fi
- ;;
-
- 'stop')
- if test -x $apachectl; then
- echo "Stopping SGI Freeware Apache httpd"
- $apachectl stop
- fi
- ;;
-
- *)
- echo "usage: $0 {start|stop}"
- ;;
- esac
-